package com.szj360.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.szj360.entity.JpressContent;
import com.szj360.repository.JpressContentRepository;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class JpressContentService {
	
	@Autowired
	private JpressContentRepository jpressContentRepository;
	
	@Transactional
	public void saveContent(JpressContent content){
		this.jpressContentRepository.save(content);
	}
	
	public List<JpressContent> findByRemarks(String remarks){
		return this.jpressContentRepository.findByRemarks(remarks);
	}
}
